// 引入 request 方法，假设 request 方法已经定义在某个工具文件中
import request from '/@/utils/request';
import {
    AddUserRegWayInput,
    BaseIdInput,
    PageUserRegWayInput,
    UpdateUserRegWayInput,
} from '../models';
// 定义 API 路径枚举
enum Api {
    SysUserRegWayAdd = '/sysUserRegWay/add',
    SysUserRegWayDelete = '/sysUserRegWay/delete',
    SysUserRegWayList = '/sysUserRegWay/list',
    SysUserRegWayUpdate = '/sysUserRegWay/update',
}

// 定义 API 方法
export const apiSysUserRegWayAddPost = (body?: AddUserRegWayInput) =>
    request({
        url: Api.SysUserRegWayAdd,
        method: 'post',
        data: body,
    });

export const apiSysUserRegWayDeletePost = (body?: BaseIdInput) =>
    request({
        url: Api.SysUserRegWayDelete,
        method: 'post',
        data: body,
    });

export const apiSysUserRegWayListPost = (body?: PageUserRegWayInput) =>
    request({
        url: Api.SysUserRegWayList,
        method: 'post',
        data: body,
    });

export const apiSysUserRegWayUpdatePost = (body?: UpdateUserRegWayInput) =>
    request({
        url: Api.SysUserRegWayUpdate,
        method: 'post',
        data: body,
    });